Skip to content

Fetch timers separately for xiaomi vacuums#41330

Merged
balloob merged 1 commit intohome-assistant:devfrom
rytilahti:fix/xiaomi_miio/optional_timers
Oct 6, 2020
Merged

Fetch timers separately for xiaomi vacuums#41330
balloob merged 1 commit intohome-assistant:devfrom
rytilahti:fix/xiaomi_miio/optional_timers

Conversation

@rytilahti
Copy link
Copy Markdown
Member

Breaking change

Proposed change

Some xiaomi vacuum devices (S50?) do not respond properly to timer requests,
causing the whole update cycle fail and leaving the device unavailable.

This PR moves the timer fetching into its own try-except block, making the integration usable w/o timer information.

Fixes #38285

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example entry for configuration.yaml:

# Example configuration.yaml

Additional information

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • The code has been formatted using Black (black --fast homeassistant tests)
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • Untested files have been added to .coveragerc.

The integration reached or maintains the following Integration Quality Scale:

  • No score or internal
  • 🥈 Silver
  • 🥇 Gold
  • 🏆 Platinum

To help with the load of incoming pull requests:

Some xiaomi vacuum devices (S50?) do not respond properly to timer requests,
causing the whole update cycle fail and leaving the device unavailable.

This PR moves the timer fetching into its own try-except block, making the integration usable w/o timer information.

Fixes home-assistant#38285
@probot-home-assistant
Copy link
Copy Markdown

This pull request needs to be manually signed off by @home-assistant/core before it can get merged.
(message by ReviewEnforcer)

@probot-home-assistant
Copy link
Copy Markdown

Hey there @syssi, @starkillerOG, mind taking a look at this pull request as its been labeled with an integration (xiaomi_miio) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)

@balloob balloob merged commit 46b2c77 into home-assistant:dev Oct 6, 2020
@Writech
Copy link
Copy Markdown

Writech commented Oct 15, 2020

@balloob When is this fix going to be published in a release?

@cgtobi
Copy link
Copy Markdown
Contributor

cgtobi commented Oct 16, 2020

Please refrain from tagging people is not actually necessary. Since it is not tagged for 0.116.4 it will probably land in 0.117.

@home-assistant home-assistant locked as resolved and limited conversation to collaborators Oct 16, 2020
@rytilahti rytilahti deleted the fix/xiaomi_miio/optional_timers branch October 16, 2020 22:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

xiaomi_miio vacuum integration stopped working since 0.112.0. Giving checksum error and suggesting I have invalid token.

6 participants